package com.example.demo1.enums;

import lombok.Getter;

/**
 * Description: 本类用于
 * Created by DWB on 2019/12/19 15:05
 * 用于维护员工状态码信息
 */
@Getter
public enum EmpInfoEnum {
    queryExceptionById(1001,"根据id查询异常"),
    idIsNull(1002,"id为空"),
    resultNotFound("没有查询到结果")
    ;

    /**
     * 状态码
     */
    private Integer statusCode;

    private String statusMessage;


    EmpInfoEnum(Integer statusCode, String statusMessage) {
        this.statusCode = statusCode;
        this.statusMessage = statusMessage;
    }

    EmpInfoEnum(String statusMessage) {
        this.statusMessage = statusMessage;
    }
}
